package de.mhus.lib.mandala;

import de.mhus.lib.core.MLog;
import de.mhus.lib.core.base.Bind;
import de.mhus.lib.core.lang.MObject;

@Bind
public abstract class Sphere extends MObject {

	@Bind private Window window;
	private Component parent;
	private String description;
	
	public Window getWindow() {
		return window;
	}
	
	public Component getParent() {
		return parent;
	}
	
	public void doRender(Component parent, Response out) {
		this.parent = parent;
		out.containerEnter(this);
		doRender(out);
		out.containerLeave();
	}
	
	protected abstract void doRender(Response out);

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
